package eg.backend.repository;

import java.util.Date;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import eg.backend.base.repository.EntityRepository;
import eg.backend.domain.Budget;

@Transactional
public interface BudgetRepository extends EntityRepository<Budget, String> {
	Budget getByTag(Date from, String tag, Date to, String user);

	List<Budget> findByCategories(List<String> categories, Date from, Date to, String user);
	
	List<Budget> findByCategory(String category, Date from, Date to, String user);
}